package com.xidian.zhiancloud.dao.riskcontrol.riskidenva;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xidian.zhiancloud.model.riskcontrol.TRiskValueLevelList;
import com.xidian.zhiancloud.model.riskcontrol.entity.TEquipFacStaGY00Entity;
import com.xidian.zhiancloud.model.riskcontrol.entity.TEquipFacStaSS00Entity;
import com.xidian.zhiancloud.model.riskcontrol.entity.TEquipFacStaZY00Entity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 风险评价-措施-风险值等
 */
public interface TRiskValueLevelMapper extends BaseMapper<TRiskValueLevelList> {

    int insterValueLevel(@Param("data") TRiskValueLevelList data);

    List<TRiskValueLevelList> getValueLevelList
            (@Param("companyId") Long companyId,
             @Param("riskAssmeaId") Integer riskAssmeaId);

    List<TRiskValueLevelList> getValueLevelAndRiskAsId(
        @Param("companyId") Long companyId,List<String> tRAssMeaList);
    
    int updateValueLevel(Integer riskAssmeaId,@Param("data") TRiskValueLevelList data);

    int addSS00ValueLevel(@Param("companyId") Long companyId, @Param("userId") String userId,
                      @Param("list") List<TEquipFacStaSS00Entity> list);

    int addZY00ValueLevel(@Param("companyId") Long companyId, @Param("userId") String userId,
                      @Param("list") List<TEquipFacStaZY00Entity> list);

    int addGY00ValueLevel(@Param("companyId") Long companyId, @Param("userId") String userId,
                      @Param("list") List<TEquipFacStaGY00Entity> list);
    
}
